adding file safety