add file check.