copy environ when passing to swauth