added showHidden flag