some improvements (hopefully) for the printing routines.