save canonical form of data - fix some toString bugs from recent changes