replaced all _id handling with new style id json