move flag to the app instance