no really fix logging this time