restoring tasks