work ongoing ... marchingsquares + calibration