adding keepExtensions option
Merge pull request #1 from ef4/master

Adding keepExtensions option