reverted metadata.rb version as per Julian's request