small refactoring
make parseRequest and processTasks functors
small refactoring