TI officia zstack codes, with modification for further test