bug fix - limit num files searched