add file detect