improved cron, style code