add envs to the pmap.c