started adapting readfilehelper to read big files