more small changes to get line working

still needs a lot of work