working on fixing json bugs