remove some logging code