task dispatcher implementation, and dummy controller to support testing