fixes and improvements for chat and sharing