updated some libraries
added crude api for events