added get functionality to server.