now correctly returning env