change to configsgen.m