small improvement
update task index when needed
check persistent/index update operation