http access timeouts added

this makes the script more robust against network errors