finished run_client section