added some file verification