added check for existing host and test