main: add a bit more logging