move server to thread
Merge pull request #6 from nwlunatic/move_server_to_thread

move server to thread