add some ideas about hosts,refactoring