implement unique name support in Script class