change read to parseExtension