add task callback and scheduler to handle sub services