fixed namespace problem with the md class