save parameters to file also