working config extraction