define search recursively
test invalid file ref