fixed warn, added error detection for corrupt stage.dat