persist and flush added