take out setting up hosts file and put it into other script