base config generation