added stream logging support