add event to lib (not complete)