refactor hostname