-cleanup
- refactoring createHost method