bug fix: search files in directory.