add event lock