finished migrating most of the code to PlatformUniverse