i mean to get rid of the entire  refresh_running_tasks function