refactoring to using relative pathes based on the path in which the config file is located