fix md construction