add some logging code