changed to get charoffset for mentions