debug version

save events for debug