clean up get_session and do_actions before really changing them...