new router, chat, templates fix