added timeout check to see if api.oreilly.com endpoint is reachable
tweaks