update plugin and add demo