make the number of tasks configurable