adding hideDir and revealDir option