group in subdirs by type