convert to daemon process, instead of cron job