plugin: add guard support