fixed some tethering and ai bugs