new api

* resolving commonjs
* better way of resolving plugins
* simplified in general