minor edits to logging