Bug fix
fixes to logging
Fix to logging