expose an rule API working by name