add delete emails and safeapply, add persistent storage