apparentyl restartung the app has to be in another thread? who knows