add utils to append to a tmp file