implement proper node clustering and rewrote printing based on that
implement label shortening and source dir clustering