make the app work in production env