update to use env