dealing with environments