add saving functionality for experiments