added timeout for HTTPConnection