add some file safeguards