completed os and script independent curl and reset scripts