improve plugin loading

* do not load plugins twice
* pass npm helpers to plugin