added $config_hash for user-defined config settings
saved original config file