move ad retrieval into cron