add third party library
bug fix & plotting