update

added check for root privilege