add update.sh, check root privileges and make inline execute more consist