tweak to api logging