Reorganize credit model and enhance the YAML nodes with path info