add chat and fix bestpractices