add task support for command service.