now passing the environment to all primitive procs