bug fixes

fixed a few bugs where I was passing in the wrong thing to the
scan_vpns function. There are likely other bugs, but I will need
to wait for a server to test further