add repo env  support