add plugin support
Merge pull request #5 from darktim/master

add plugin support by darktim