allow a metadata field to be passed in