modify clientmain