decoupled version of the pagination (wip)