add keeysession flag for session&Misc