fixes to output