refactored cron to use create_resources