updated config generator