doc safe refine