refactor sessionID