added timeout to HTTP requests