added sessions control