added new method for detecting production env.