added script for cron job