keeping chat lib common for user and admin