add support for multiple hosts