updated path setting so it's only done if necessary