more work on default query.
fix to limit(x,y) indexing issue.