adding ip to hosts file
fixing a guard error, now looks for exit 0 or defaults to the end of the file