removed some logging, fixed crash