fixed upgrade script. added smarts to motd