fixed env lookup