add file check