move trigger to cron job stuff