more refined logging