miscellaneous tools for post-processing datasets