added sessions support