modify chatlayer, delete unused resource