chat log related code towards integration with userpanels