improved log support