add logging to server and authorized route