added libmms and fixed newver function