work around setdir impotent idempotence