implement the pulgin mechanism.
Merge pull request #12 from lizhijumacc/master

implement the pulgin mechanism.