app startup fixes