cleaning up logger api mode