out to stderr if logger is not set.
different indentations.
main tracing unnecessary.
updated.
code tracing.