improved build config m2 settings method