fixed some MD stuff