add some docs for plugin hooks