made some visual-repair-code work