logging to try and diagnose an issue