update sub-directory searching functionality.