refacroting - create taskexecutor