new method to set path (and reinit config)

`setPath` now enables changing configuration even after initialization.