fix logging!