added code to remove the host with the same name before new one is created.