fixed parser and plot