initial commit of server implementation