move hosts template to an external file