working on Worker#addFunction()