CHG: changed output to logging system