move initialization to the app initializer