various fixes.

most importantly, update configurations when networks change.