stronger validation of restore file