removed debug statements in handleXML, Contour stuff works