refactor checks to see if this is an upgrade
added restart subscription on package install/upgrade