reimplement walk_lines() with is_gauge param