preferences is stored as string