okay clean up all the code only left around 30 line length complain that should be fine. But auto-close a session broke xwen2