some exception handling for when the pb api fails