more printing fixes