add compatibility for paginator