remove use of getExtension
Merge pull request #61 from christofdamian/remove-use-of-getExtension

remove use of getExtension