check file before sign