add setenv, please test with AER