trying to fix issues with json parsing