improved logging; debugging ns issues