add event machine