register plugins only once
Merge pull request #219 from lloiser/plugins

register plugins only once