remove MGBase.h dependency