session stuff with ordering and recording