Somewhat working server

fixes #3