rename addFile to addFileEvent