fixing generation issues add split for directories by namespace