main.c recovery