save and load hostnames