various scripts & tweaks by Josh Glenn aka jlg@dukgo.com