generate directories instead of flat files