add edge lengths
attempt at unstacked canonical dists
bug fix