changed production mode detection