clean up ref gen/ignore/dump logic