limit terminal and chat backlog

fixes #200