fixes #46 port polymer-file
closes #46