refactors on the config parser and global config interface