improvements on session
fix bugs regarding session
Merge branch 'master' of github.com:dmelo/amuzi