fixed multipart query parsing