edit platform specific functions