moved parse_query_fields to the server side