move subs into binding
update plugin example
update plugin example