updates to metadata script