more work on dg edges