also retry on timeout; log response if error happens; syntax fixup