fixes for printing