enable logging from cmdline, log_* fixes