added method for multipart messages