clone template scnario

multiple small changes in the scripting module