pagination

fixes #1