replace lists based envs with maps