add hard link check and repair