putting in some logging