added getMetadata implementation