destructor needs to free the memory.
Need to test user defined script name.