modifications for compiling recovery