mainly erg parsing pipeline