improved verification if extension defined multiple times in diffrent places