first solution to save/load parameter, need a lot of test