refined logging