- move platform-specific stuff to specific separate files and functions.