switch to new logger api