parameratizes the config.pp function