more tweaks to get log