added discovery flag and block