added separate function for 'update and install'