added back docblock for getExtension method