added session handler