WIP: more general _mp_work function [skip ci]

we need this commit to get this code on multyvac