use persistent storage on iOS