pass baragon metadata object, not string to writeToZk