Session checking
small changes