add file detector