write out insertion and deletion calls into their own files