update genwriter to handle v4 Tags