added serverhandler; took out low level details out of server class