still trying to get my wrapper script into usable shape.
made some more functions pub to support hacking on plugin.rs directly.
root testsuite: still hacking but this is now servicable I think.