renamed main function in run client