better logout
removal session seems to working, a lot of debug change had to be undone
removed debug