fix comm issues in new output code