working on the scripting part