adding a check to make sure we can catch the object in case there's a connection failure