add in some logging