working config generation