removed duplicate debug messages
fixed some logging stuff