allow parameters in extension

I started to spec this until I realised this class is not speccable with current impl.

We should extract this extension loading mechanism to its own class.