feat: allowFunction and denyFunction methods