changing state managment to properly flatten internl TTScript class and hide this ugly implementation to external client of Score framework