updated splitref script to prevent any chunks being greater than 6.5mb