update to flash messages and cron functionality