fix bugs
support plugin