added more functionality to the server`