support multiprocess plugin without using globals

it really was a nasty hack, damn you @wilfrid
linted