set env instead of using expect