fixed config parsing functionality