add logging support