differentiate between global and matrix env variables