add functions to read config files and to print