metadata.rb cleanup