various hacks to try to get the app to work properly.