restore edge-bending version of Main