add get and inc method to MObject