add config file functions