check platform first