fix exec_hosts retrieval