fix all_hosts decorator