added flot for plotting