First, yes, you want to overwrite the script that is currently loaded. If you don't, you won't be "updating" the script.
overwriting the currently loaded script, so when reading the data through sockread i should be writing to this currently loaded script?
isnt this dangerous?
i was initially thinking something like:
1) an update is required to replace bluetheme.mrc
2) download updated bluetheme.mrc to some folder
3) unload bluetheme.mrc
4) move download/bluetheme.mrc to scriptdir and load that