added segment.io integration for production and development environments