put server in main thread. since it prints stuff on the screen it's good it's in mainthread.