major (non-working) cleanup: * new API: tmp_path, compress_file2path * truncate fixes * various asserts