better pretty printing in remote_gateway_info_script. update time_last_seen after the first failure as well