add saving and loading of the best parameters