realized line.c was broken, will rewrite