fix: added perms structure to plugin