added additional logging to try and track down a problem