fix(tasks): improve task creation