updated file checks