working on device cookies. Saving progress