dir should remain unaffected