refactor event create files