add event and magix event