adds a bit of resiliency to that parsing code;