renamed resp to server_reply