get rid of magic new_session state variable
fix arg name typo