debugged chat application - it should be working correctly