standard function for bootstrapping discovery threads