removed log_puts (replaced by log_printf)