add TB for CPA ... Add extra features to sim script