- changed example to use direct with logging