v1.1 fix bugs: caches, and sort string/dirs