create host string in one method

This way it's easier to use external services such as [runscope](http://www.runscope.com/)