work on discovery thread, ready to add queues