mr environment setup