improved task persistence configurability