ensure platform compatibility