improved log collection