sorted sessions, small bug fixes