adding header to .mds