change plugin registration to a more generic way
Merge pull request #6 from mmoll/plugin_registration

change plugin registration to a more generic way