Chat.php lib files