add a bit more logging