working on some preferences
adding back keychain api helpers, but still not used