try and make it clearer how the random_endpoint stuff is used, a little bit more verbosity, hopefully a little bit more clarity