now returning lineid as well