remove depricated code
add plane aligned edge-weighting
prepare for buckling hack for lg