add logging option