added session api method