added showHidden option