add output as an attribute for metadata