updated for line command tool. got lost in the merge