recovering old code from view_tasks