rename to libmg