use logger for debug output in processblock