add some handlers for server requests