removed hard-coded querystring
removed $ from evalfield.tostring() and added tostring() to all aggregation functions