make update more clever
Merge pull request #2 from rimunroe/clever-update

make update more clever