Improve hosts appending