handles passed in session id