Local prefs and global app instance