code cleanup
ChatLog API improvements