initial version of mm solver main file