read in line and echo back