added code without node implementation of cron job