some logging removed