close #158 better distribute session manager