added lottery data handler.