more error checking on soup parsing