better researched logging