logging json was a bad idea