add tsoup scratchpad code