changed split file read and process json methods