resolved more logging bugs