added lastFile to stop Event