customizable log handling
rebuild wrapper