this script will convert old header format to new header format (using RV header as template)