pass sessionID to end