fixing up json file splitting