replace some print with the system logger