refactored regtestsw for (InternetAddress and more cleanusp to that code