fixes to config and cron