socket passing draft
added test for invalid line
socket passing works now