agv: support contextual lines