TODO make TchatManager a working singleton