switched over to clipper lib.
at least 100x faster, less error prone, code is at least half as large.