add file checks