added open hierarchy option, 0 and all