basic server with authentication