add attachments options to payload