added try except blocks for failed requests