add arg parser to client and server.