attempts to fix error with json string parsing