finally found bug in extension parsing