pass metadata: added the machinery to write param and attributes