added env proxy support