service/client and chatting func added