add old chat code to update