fixed dual packet issue
fixed plotting bug
about to merge