fixes initializer to use preferences in main app