refactor chronicle
bug fixes
work on shutdown