minor whitespace and logging fixes