some printout fixes