fix issue #10 (where after whereElemCount and filter/count ordering)
merge from develop, fix deprecation