moved environment initialization for Mercury to mercury_dev_env