fixes #18 pagination implementation