add new host and remove old one