testing codes for server.