fix logging hoperfully