use passed metadata, bc self.metadata doesn't exist