implemented pager, fixed #1