extract config