aggregate framework working with new mongo version