add session support fix #1