support for saving params to file
support for restoring params from file