changed how the script data is loaded to a serialized object
changed to serialized object