removed unused stuff and simplified session code
fixed compiler problem due to new method of Connection interface