added support for a rudamentary paging system