tmp-format: add function to load TMP files