handle parameter files with nested dictionaries