adds attachment metadata;