improved: unique tasks, max task count handling