added possibility to not modify a path by specyfing it as an object