made gem working with newest version of MM