pagination works
branching for rewrite