using environment variable for mm api