add function for process config file