support for passing of the previous task' results and parameters to tasks' scriptblocks; refactoring