implement typing notfication
and comment out some currently unused message handling functions