fix(worker): map functions in workers