added option to turn off print logging