upgrade of treatment scripts