start on refactor fromJson for setting ones with a temporary id