cleanup change_host_name method