adds some json parsing and testing