expose output as an attribute