practically identical bottom end to JTS - modulo. quite like it