lots of changes to get scheduling working for processing lottery results