scrit/diff exit staus and output fixes