fix perms and add extra example