updated config generation