Issue #9 make logref optional