remove use of getExtension

fixes #60