added cfg generator