fixes to parsing external polys