it would be best to have path as part of the defined `exec` on line 85, otherwise this makes the path modification global and might have side-effects