refs 7728 modified version of kaminari