fixup amc output format