some MD fixes