parametrized the mwd implementation selection