cli/reply: make references header creation easier to follow