add option to set hostname
Merge pull request #1 from kcrayon/master

add option to set hostname