added 'do_task' event for dispatcher and 'task_request' for client