fixed some json brokenness