fixes to printer and compiler