cleaned up the app initialization