lottery plugin enhance