and a bit more logging