implemented bulk of worker task management.