modefied find-directory