Cleanup
Adapted the adapter

not that it was broken, but it could be improved and
valium really needs the additional checks. Ping @xeno-by.
Merge branch 'wip' of github.com:miniboxing/miniboxing-plugin into wip