* added stack trace to error event
* fixed autocompact bug
* added compacted event
* added autocompact test