handle bad urls
handle non-sucessful requests