improve parsing further, merge all category/thresholds into one polygon!