cleaning up architecture, standardizing chat mechanism