add leavesOnly option that filters only by leaves' titles