move platform specific code to AppInfo