add env and matrix