fixed variable replacement in reporting errors in tasks
removed crud