adjusted log_client