create directories with rules
rename TRG_BASE and TRG_EXT