trimmed some unused code for session tickets