add platform check