adding shared sessions functionality