make paginate work with classic apps. issues/1