add script for cron