improved line parsing to include quotes and escapes
fixes