first sketch of chat backend