added hasfile validation