decoupled global and per-plugin settings; fixed tests