update dependecies
switch to events API, rotate archive on event timestamp