making the "path" param optional in both commands