ver4

refactoring for proxy function
add function of reading proxy file and reset proxy when timeout