multi-platform support

multi-platform support