added some definition of function in chat link module