clean up Cons.toArray
fix quote parsing