add support for multiple hosts in $HOSTS