added the functionality for searching in a specifid path only