fixing json return to make it useful