fix cron, still needs to be tested