working on dirs as categories