make metadata optional in responses