fixed a few more multipart form handling bugs