add ‘recursive’ option to prevent search descending into subdirectories

this is fine the way it is