add automatic printing