fix connect() multipart warning