* moved check for apt-get update into functions