some changes for running app in production mode