create host in one method
Merge pull request #7 from leifg/generic_host

create host string in one method