wrapper better logging