original copy from m3r v1.0.0