backported more logvars