for cron task with [safe_mode on]