adding corrupt property detection and repair