fixed nested workers, implemented mapBuffer