msd finally works properly