backported new logvars from 1.5