fixup! make new functions for getting and testing random ports