adjusted to new logging API