refactor to support arbitrary hostnames from the default recipe