fix logging things