some bug fixes and first bist of chatsrv and chatcli test apps