added discovery stuff