the first argument for all the events is now the file id