added optional printouts for debug tracing