adds more detailed logging so I can better track down some issues