add back this plugin enable switch, fix syntax error

Signed-off-by: Huang Cheng <sniperbat@gmail.com>