debugging cron and cron function