added hideStructure option