update some packages.
Wrap code in braces so  vars aren't overwritten. durr.