fix undefined hostname for users

@trobrock 

addresses #3