handle cut and refs in dumps