fix scope and over-logging bugs with printer