fixed config parsing