create the needed metadata in the plugin, don't rely on another plugin

To fix issue #6

this is untested code, but the general idea should be clear