make hostname work