fixing json accesses