change mgd to include new reference temperatuer option.