fwd: attachments, fix some mem issues