linelog and internal variables