add basic threading to discover