improvements to reveal directive