adapted to new tasks creation mechanism in API