get rid of magic new_session state variable