move working mem out of coproc into workmem