support for paggination
Merge pull request #144 from msapunov/mc

support for paggination