fix for multiple hublocs and incoming magic auth