moved platform check