added AIO check, and fixed broken env trans.