better test for platform