add paging to datafiles