updates to make it work on ios - prefs saving problem, uuid generation
problem