added cron job
added log
fixed cron script