fix logging api calls 2