refactoring manage_experiment_session