keychain and profile parsing