recover from code loss