example multipart
if buffer null - return
update