add support for old undo tag