fix bugs related to disabled dns. reformatting