use printf for output and use a scoped log facility...and more