correction for multipart handling