improved basic update script