more error checking
fixed permission error in carving