keep compatibility with 'c'
Some readability refactors
Add a marer to beginning of host list to avoid confusion from past lists
More readability refactoring
fix a style error
reduce rewriting