remove function to check platform , use os.name instead