plug new scan function, still gotta fix ignorable files logic