add gen name to the created dirname.