handle the new output format