updated to new kcwraps naming. added a logging handler func wrapper.