minor changes to task controller, debugging still needed