fix logging api calls