stacking connection plugins

Hi!
I’m currently working with some OpenVZ containers, and provisioning them by using a custom “vzctl exec over ssh” connection plugin (which I can’t share now, as it was made on my employers time).
I’d love to see a dedicated API for connection plugins that mostly just wrap commands and change put/fetch paths, so my question is:
Would it be possible to have separate “base” and “wrapper” plugins for connections, such that wrappers can be stacked on top of a base plugin?
And are there other people here that would find it useful?

So connection plugins do have an API.

There won’t be a way of “nesting” them though.