revamping mgbuild options