tweaked update script organization