split to 2 methods - `path…`and `defaultPath...`